package ${pk.helpPackage};
<#if (pk.helpSuperClassNme)??>

import ${pk.helpSuperClassPackage}.${pk.helpSuperClassNme};
</#if>

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;

import ${pk.entityPackage}.${pk.entityName};

<#assign nowDate = .now>
/**
 * ${table.comments!} 帮助类
 *
 * @author ${author!'作者走丢了'}
 * @created ${nowDate?string("yyyy-MM-dd HH:mm:ss")}
 */
public class ${pk.helpName}<#if (pk.helpSuperClassNme)??> extends ${pk.helpSuperClassNme}</#if> {
<#list table.fields as field>
<#if !field.commonField>

    /**${field.comments!}*/
    public static final String ${field.entityFieldName} ="${field.fieldName}";
<#if field.notes??>
<#list field.notes as note >
    /**${field.comments}<br/>${note.desc}*/
    public static final ${field.javaSimpleType} ${field.entityFieldName}_${note.pinyin}= "${note.key}";
</#list>
</#if>
</#if></#list>

    /**
     * 创建一个 ${pk.entityName} 查询帮助类
     */
    public static QueryWrapper<${pk.entityName}> createQuery(){
        return new QueryWrapper<${pk.entityName}>();
    }
    /**
     * 创建一个 ${pk.entityName} 更新帮助类
     */
    public static UpdateWrapper<${pk.entityName}> createUpdate(){
        return new UpdateWrapper<${pk.entityName}>();
    }
}

